package 线程.day1.demo1;

public class T extends Thread{
    @Override
    public void run() {

        System.out.println(this==Thread.currentThread());
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("这是线程的任务,线程名字："+Thread.currentThread().getName());
    }
}
